package com.ruoyi.system.api;

import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.system.api.factory.RemoteCarouselFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(contextId = "remoteCarouselService",value = ServiceNameConstants.SYSTEM_SERVICE,fallbackFactory = RemoteCarouselFallbackFactory.class)
public interface RemoteCarouselService {

    @GetMapping("/carousel/listCarousel")
    public AjaxResult listCarousel(@RequestHeader(SecurityConstants.FROM_SOURCE)String source);
}
